<div ng-controller="ManagementCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'管理'| translate}}</li>
        <li>{{'授权小程序列表'|translate}}
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text"  placeholder="{{'版本号'|translate}}"  ng-model="template_id">
          <input type="text"  placeholder="{{'appid'|translate}}"  ng-model="appid">
          <input type="text"  placeholder="{{'小程序名称'|translate}}"  ng-model="nick_name">
          <input type="text"  placeholder="{{'公司名称'|translate}}"  ng-model="principal_name">

          <button class="sui-btn btn-primary" type="submit" ng-click="getList()">{{'search'|translate}}</button>
            
          <a class="sui-btn btn-primary" href="#/management/msglog"> 短信日志</a>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'所属用户'|translate}}</th>
                <th>{{'组织编号'|translate}}</th>
                <th>{{'所属于公司'|translate}}</th>
                <th>{{'所属于店铺'|translate}}</th>
                <th>{{'小程序应用'|translate}}</th>
                <th>{{'AppId'|translate}}</th>
                <th>{{'类型'|translate}}</th>
                <th>{{'Logo'|translate}}</th>
                <th>{{'发布版本'|translate}}</th>
                <th>{{'设置支付方式'|translate}}</th>
                <th width="25%">{{'二维码'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in authrizeApp">
                <td>
                    <wxinfo ng-model="list.partner.creator_id" userid="{{list.partner.creator_id}}"></wxinfo>
                    <br>
                    <a href="#/authrize/list?user_id={{list.partner.creator_id}}">{{'查看'|translate}}</a>
                </td>
                <td>{{list.partner_id}}</td>
                <td>{{list.nick_name}}</td>
                <td>
                    <!-- <store-list ng-model="list.store_id" stype="1">
                    </store-list> -->
                </td>
                <td>{{list.nick_name}}</td>
                <td>{{list.app_id}}</td>
                <td>{{list.principal_name}}</td>
                <td><img ng-src="{{list.avartar_url}}" style="width: 60px;" /></td>
                <td>{{list.template_id}}</td>
                <td>
                    <store-payvalue ng-model="list.store_id" cuid="list.cust_account_id" callbacks="upPaytype(data,list)"></store-payvalue>
                </td>
                <td>
                    <button class="sui-btn btn-success" ng-click="openQrcode(list.app_id)">查看二维码</button>
                    <button class="sui-btn btn-primary" ng-click="savelayout(list.app_id)">使用装修模板</button>
                    <!-- <button class="sui-btn btn-primary" ng-click="savelayout(list.app_id)">修改装修模板</button> -->
                    <up-layout storeid="{{list.store_id}}" wxappid="{{list.app_id}}"></up-layout>
                    <br/>
                    <div style="margin-top:5px">
                        <send-mb-msg user-id="list.partner.creator_id" chosed-type="'sms'"></send-mb-msg>
                        <a class="sui-btn btn-warning" href="#/management/msglog?user_id={{list.partner.creator_id}}">短信日志</a>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="page_Size" total="xtotal" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>